

import React from 'react'
import { useRootStore } from './../../../index';
import { observer, inject } from 'mobx-react';

const CommodityList =() => {

  const store = useRootStore();
  const {count} = store
  return (
    <div>
      <p>{store.count}</p>
      <button onClick={()=>store.changecount(1)}>
        +++
      </button>
    </div>
  )
}

export default ( observer(CommodityList))